package com.itheima.reggie.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * ClassName: Employee
 * Package: com.itheima.reggie.entity
 * Description:
 *
 * @Author www.youkewang.top
 * @Create 2023-10-21 17:36
 * @Version 1.0
 */

// 员工实体类
@Data
public class Employee implements Serializable {
    private static final long serialVersionUID = 1L;
    private Long id;
    private String username;
    private String password;
    private String name;
    private String phone;
    private String sex;
    private String idNumber; //身份证号码
    private Integer status;
    @TableField(fill = FieldFill.INSERT) // 设置该注解可以让MyMetaObjectHandler中的实现方法运行
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    @TableField(fill = FieldFill.INSERT)
    private Long createUser;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;

}
